#!/usr/bin/python3
# author luke
# 2024年02月24日
class BitMap():
    def __init__(self):
        self.bitmap = 0
        self.arr = [1,3,3,6,6,7,8,3,2,1,3]
        self.newarr  = []
    def dup_remove(self):
        for i in self.arr:
            if self.bitmap & 1 << i :
                pass
            else:
                self.newarr.append(i)
                self.bitmap = self.bitmap | 1 << i

if __name__ == '__main__':
    bit = BitMap()
    bit.dup_remove()
    print(bit.newarr)